package com.mingqi.enetconnected.primary.worktable.adapter;


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mingqi.enetconnected.R;

import java.util.List;
import java.util.Map;

/**
 * Created by li on 2018/8/9.
 * WeChat 18571658038
 * author LiWei
 */

public class MyWorkTypeAdapter extends BaseQuickAdapter<Map<String, Integer>,BaseViewHolder> {

    public MyWorkTypeAdapter(@Nullable List<Map<String, Integer>> data) {

        super(R.layout.item_work_table_type,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Map<String, Integer> item) {

        helper.setText(R.id.tv_work,item.get("title"));
        helper.setImageResource(R.id.iv_work,item.get("img"));
    }
}
